﻿@model MC.RideEvent.Mvc.Models.ViewModel.HomeViewModel

@{
    ViewBag.Title = "Home Page";
}

<span class="titlegrand">bon plans covoiturage</span>
<div class="homelistevents">
    @foreach(var itemEvent in Model.ListEvents)
    {
        <a href="Event/Detail/@(itemEvent.Id)">
            <div class="itemevent">
                <img alt="@itemEvent.Title" src=""/>
                <span class="titleevent">@itemEvent.Title @itemEvent.NamePlace</span>
                <span class="dateevent">@itemEvent.DateBegin.ToString("dd MMM yyyy")</span>
                <span class="priceevent">@(itemEvent.Price != null ? @itemEvent.Price + " €" : "")</span>
            </div>
        </a>
    }
</div>
